package springboot.mybatis.mapper;

import org.apache.ibatis.annotations.Param;
import springboot.login.domain.User;
import springboot.mybatis.model.TbUserManagement;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mybatis_plus
 * @since 2017-12-04
 */
public interface TbUserManagementMapper extends BaseMapper<TbUserManagement> {

    /**
     * 根据的域名来更改数据库
     * @param un 域名
     * @param pw 时间
     * @param uid 几号
     * @param ups 错误类型
     */
    void updateUserps(@Param(value = "un")String un,@Param(value = "pw")String pw,@Param(value = "uid")Integer uid,@Param(value = "ups")String ups);

    /**
     * 根据域名型号来查询
     * @param uid 域名型号
     * @return
     */
    List<User> findByUserid(@Param(value = "uid")Integer uid);

    User findByUsername(@Param(value = "un")String un);
}
